home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13846 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  696 b 

  1. Path: mail2news.demon.co.uk!egnatia.ee.auth.gr
  2. From: Theodore Chronis <tchronis@egnatia.ee.auth.gr>
  3. Newsgroups: comp.lang.c
  4. Subject: file reading help
  5. Date: Wed, 10 Apr 1996 13:11:44 +0200
  6. Message-ID: <wd5axYAJAKyZ088yn@egnatia.ee.auth.gr>
  7. X-NNTP-Posting-Host: egnatia.ee.auth.gr
  8. X-Mail2News-Path: egnatia.ee.auth.gr
  9.  
  10. I am learning the basic principles of Information Theory , and i want to
  11. count the entropy of certain binary files.
  12. So i need an utilitie that will read any file , storing all bytes in an array
  13. of length = Size of the file .
  14. example let suppose that :
  15. <file test.dat>
  16. fglhefoghe vjeopjejge gjergjerj erg
  17.  
  18. Then the C program will do the following procedure:
  19. a[1]=f
  20. a[2]=g
  21. a[3]=l
  22.